
package com.naza.rpc.event;

import com.google.common.eventbus.Subscribe;
import com.naza.rpc.netty.RpcSendExecutor;

/**
 * @author yl
 */
public class ClientStopEventListener {
    public int lastMessage = 0;

    @Subscribe
    public void listen(ClientStopEvent event) {
        lastMessage = event.getMessage();
        RpcSendExecutor.getInstance().stop();
    }

    public int getLastMessage() {
        return lastMessage;
    }
}

